package com.zyp.api;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName HiController
 * @Deserption TODO
 * @Author yinpeng.zhang@ixiandou.com
 * @Date 2019/8/15 15:00
 * @Version 1.0
 **/
@RestController
@RefreshScope
public class HiController {

    @Value("${foo}")
    String foo;
    @RequestMapping(value = "/hi")
    public String hi(){
        return foo;
    }
}
